<%-- 
    Document   : add_accounts_detail
    Created on : Oct 15, 2012, 3:58:14 PM
    Author     : 
--%>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript">
            
        $(document).ready(function(){
            $('.akaunPelaburan').hide();
            $('.akaunJagaan').show();
            $('#jenisAkaun').change(function(){ 
                var jenisAkaun = $(this).val();
                if(jenisAkaun == '11'){
                    $('.akaunJagaan').hide();
                    $('.akaunPelaburan').show(); 
                }else if(jenisAkaun == '02'){
                    $('.akaunPelaburan').hide();
                    $('.akaunJagaan').show();
                }                                      
            });            
            
            
        });
            
         function resetAll()
         {
             document.getElementById("noAkaun").value="";
             document.getElementById("noKp").value="";
         }
         
         
            
        </script>
    </head>
    <body>
        
        <s:form beanclass="th.stripes.action.DepositActionBean" class="niceform">
            <s:errors/>
            <s:messages/>
            <div id="content">
                <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
                <h3>                
                  Tambah Akaun Di Bawah Jagaan/Pelaburan IPD-KWSP
                </h3>
                <p>
                    <label><font color="red">*</font>Jenis akaun :</label>
                    <s:select name="deposit.jenisAkaun"  id="jenisAkaun">
                        <s:option value="02">Akaun di Bawah Jagaan</s:option>
                        <s:option value="11">Akaun Pelaburan IPD-KWSP</s:option>
                    </s:select>
                </p>
                
                <p class="akaunJagaan">
                    <label>No. Akaun TH :</label>
                    <s:text name="akaun.akaunTmbhn" id="noAkaun" maxlength="15"/>
                </p>
                <p class="akaunJagaan">
                    <label>No. KP Semasa :</label>
                    <s:text name="akaun.noPengenalanTmbhn" id="noKp" maxlength="12"/>
                </p>

                <p class="akaunPelaburan">
                    <label>No. Akaun IPD-KWSP :</label>
                     <s:text name="akaun.akaunTmbhn" id="noAkaun" maxlength="15"/>
                </p>
                <p class="akaunPelaburan">
                    <label>No. KP Semasa :</label>
                    ${actionBean.pengguna.noKp}
                </p>
<!--                <p>
                    <label>No Pin :</label>
                    <s:text name="noPin"/>
                </p>-->
                    
                <p>
                        <label>&nbsp;</label>
                        <font size="2">Ruangan mandatori bertanda <font color="red">*</font> adalah wajib diisi.</font>
                </p>
                 <p align="center">                                           
                        <s:submit name="addAcc" value="Simpan" class="button green button_blockUI"/>
                        <s:button name="reset" value="Isi Semula" onclick="resetAll()" class="button green"/>                    
                </p>
               
            </div>
        </s:form>        
    </body>
</html>
